package com.imooc.coupon.conf;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.text.SimpleDateFormat;

//Jackson的自定义配置
public class jacksonConfig {
    public ObjectMapper getObjectMapper(){
        ObjectMapper mapper = new ObjectMapper();
        mapper.setDateFormat(new SimpleDateFormat(
                "yyyy-MM-dd HH:mm:ss"
        ));
        return mapper;
    }
}
